package org.fintool.runners;

import org.fintool.beans.Scrip;
import org.fintool.functional.FinanceUtilDay;
import org.fintool.functional.ScripCalculations;

public class MinMove {


	public static void main(String[] args) throws Exception{
		//roughCalculation();



		System.setProperty("http.agent", "Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.16 Safari/534.24");

		FinanceUtilDay fd=new FinanceUtilDay();

		fd.updateQuotes("BHP","ASX");

		Scrip scrip=fd.getScripData("BHP","ASX");

		ScripCalculations sCalc=new ScripCalculations();

		System.out.println(sCalc.findStatsForMinMove(scrip,point1,point3,maxError));


		//findForllASX();
		//compareScripCorrelation("ASX", "NCM", "PINK","NCMGY",1.7);
		//compareScripCorrelation("ASX", "NCM", "INDEXDJX","DJUSPM",1.0);
		//compareScripCorrelation("ASX", "BHP", "NYSE","BHP",1.5);
		//compareScripCorrelation("NSE", "INFY", "NASDAQ","NASDAQ",0.5);
		//compareScripCorrelation("NASDAQ", "INFY", "NSE","INFY",0.5);
	}

	public static double point3=.3;
	public static double maxError=.3;
	public static double point1=.1;
	public static double point5=.7;
}
